﻿@using Ed.Common;
@using Ed.Web.Helpers
@{
    Layout = null;
    //准备资料
    var life_pics = (object[])Utils.StringToObjectArray(Model.PInfoLifeimg, ',');
    //证书资料
    var cert_pics = (object[])Utils.StringToObjectArray(Model.PInfoCertimg, ',');
    var services = (List
<Ed.Entity.TPregnanterServiceRecord>
)ViewBag.ServiceRecord;
    var evals = (List<System.Collections.Generic.Dictionary<string, object>>)ViewBag.Eval;
}
@model Ed.Entity.TPregnanterInfo
<!DOCTYPE html>
<!-- saved from url=(0066)http://m.iyuesao.com/M/Detail/2600/j3n2?shsj=2014-12-23-2015-01-17 -->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>雪绒花</title>
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta name="baidu-site-verification" content="H6od0XC7DJ">
    <link rel="shortcut icon" href="http://m.iyuesao.com/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="/Content/css/xueronghua.3g.css">
    <!--去除顶层加载中-->
    <script type="text/javascript">
        //=============================================================
        //去除顶层加载中
        $(document).ready(function () {
            //去除加载中
            if (undefined != top.dialog.list["show_loading"]) {
                top.dialog.list["show_loading"].close().remove();
                //showTopMsg("页面加载成功！", "温馨提示", "Success");
            }
        });
        //=====================================================================
    </script>
    <!--初始化-->
    @*<script type="text/javascript">
        $(function () {            
            //加载省市数据
            load_city_data("YuesaoProv", "YuesaoArea", "YuesaoRegion");
            init_city_data("YuesaoProv", "YuesaoArea", "YuesaoRegion", "@Model.PInfoCity");
        });
    </script>*@
    <script type="text/javascript">        //手机机型适配
        if (/Android (\d+\.\d+)/.test(navigator.userAgent)) {
            var version = parseFloat(RegExp.$1);
            if (version > 2.3) {
                var phoneScale = parseInt(window.screen.width) / 640;
                document.write('<meta name="viewport" content="width=640, minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi">');
            } else {
                document.write('<meta name="viewport" content="width=640, target-densitydpi=device-dpi">');
            }
        } else {
            document.write('<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">');
        }</script>
    <meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">
</head>
<body>
    <header>
    <a class="return" href="javascript:history.go(-1)" title="返回"></a>
    <section class="title"><span class="yuesaoName">@Model.PInfoName</span><span>编号ID: @Model.PInfoCode</span></section>
    <a class="returnList" href="index.htm" title="列表页"></a>
</header>
    <section class="back detailsInfo pd30">
    <section class="userImg fl">
     <img src="@Model.PInfoPhoto" width="178" height="178" alt="@Model.PInfoName" title="@Model.PInfoName" class="photo" />      
    </section>
    <section class="userInfo fl">
        <p>@Model.PInfoAge 岁，现居住在<span class="money">@Model.PInfoAddress</span><br />
        有<span class="money">@Html.OptionsPalse(@Model.PInfoEdage, "1|1年以下,2|1-3年,3|3-5年,4|5-7年,5|7-9年,6|9年以上")</span>家政服务行业工作经验。 </p>
        <p><span class="gray9">综合评级：</span>@Model.PInfoLevel 星</p>       
        <p class="price">@Model.PInfoPrice<span class="gray">/24小时</span></p>
    </section>
</section>
    <nav>
    <section class="detailsNav nav-tag" style="position: relative; top: 0px; border-bottom-style: none;">
        <ul class="clearfix">
            <li title="baseInfo"><a class="active" href="javascript:void(0);" title="基本信息">基本<br/>信息</a><span></span></li>
            <li title="workSkills"><a class="" href="javascript:void(0);" title="职业技能">职业<br/>技能</a><span></span></li>            
            <li title="characters"><a href="javascript:void(0);" title="月嫂性格" class="">月嫂<br/>性格</a><span></span></li>
            <li title="review"><a href="javascript:void(0);" title="大家点评" class="">大家<br/>点评</a></li>
        </ul>
    </section>
</nav>
    <!--基本资料 start-->
    <section class="back" id="baseInfo">
    <section class="LabelTitle" style="border:none;"><span>个人信息</span></section>
    <ul class="yuesaoLabel clearfix">
        <li><span> @Model.PInfoAge 岁    @Model.PInfoNational     @Model.PInfoXingzuo
                        @Model.PInfoShuxiang     @Html.OptionsPalse(@Model.PInfoEducation, "1|本科及以上,2|大专,3|高中,4|初中及以下")学历</span><em></em></li>
        <li> 户口所在地：<span>@Model.PInfoPermanent</span><em></em></li>
        <li>特长爱好：<span>@Model.PInfoHobby</span><em></em> @Html.HiddenFor(model => model.PInfoYdes)</li>
        <li>我的个人宣言<br /> @Model.PInfoMyNote</li>
        <li> 雪绒花对我评价<br />@Model.PInfoNote</li>
    </ul>
    <section class="LabelTitle"><span>工作经验</span></section>
    <ul class="yuesaoLabel clearfix">
        <p><span>从业 @Model.PInfoEdage 年 </span><em></em></p>
        <p>24小时参考工资：<span>@Model.PInfoPrice 元/月</span> <br/>
        12小时参考工资：<span>@Model.PInfoPrice12 元/月</span></p></ul>
    <section class="LabelTitle"><span>员工视频</span></section>
    <ul class="yuesaoLabel clearfix">
    </ul>
            <section class="video">
                <video controls width="100%" poster="" preload="preload" height="325">                   
                    <source src="http://27.195.146.138/videos/v1/20140917/b9/13/66a6fb6633e6260920d19332a5a79763.mp4?key=22c995144c558e56&amp;src=iqiyi.com&amp;m=v&amp;qd_src=ih5&amp;qd_tm=1422629859915&amp;qd_ip=120.132.51.136&amp;qd_sc=c5643926bf74539cfb44aa541c141ad0&amp;ip=120.132.51.136&amp;uuid=6a789605-54cb9be3-36" type="video/mp4">
                </video>
            </section>
            <section class="detaPic">
            <!--scroll-->
             <!--证件照显示-->
            <h4>证件照片</h4>
            <section class="scroll relative">
                <section class="scroll_box" id="scroll_img" style="visibility: visible;">
                    <ul class="scroll_wrap" style="width: 2428px;">
                        <li data-index="0" style="width: 607px; left: 0px; transition: 300ms; -webkit-transition: 300ms; -webkit-transform: translate(0px, 0px) translateZ(0px);">                                        
                    @if (@Model.PInfoCertimg != "|")
                    {
                        foreach (var cert_pic in cert_pics)
                        {
                            try
                            {
                                var cert_infos = cert_pic.ToString().Split('|');
                                var big = cert_infos[1];
                                var small = cert_infos[2];
                                var des = cert_infos[3] ?? "暂无描述...";
                        <a class="pic" href="@big" title="">
                            <img src="@small" alt="" width="auto"
                        height="200px;" /></a>
                            }
                            catch
                            {
                            }
                        }
                        <script src="~/Themes/default/yuesao/zoom.min.js"></script>
                    }
                    else
                    {
                        <h6>
                            对不起，该育婴师暂无证件照</h6>
                    }   
</li>
                   </ul>
                </section>
            </section>
            <!--生活照显示-->
             <h4>生活照片</h4>
            <section class="scroll relative">
                <section class="scroll_box" id="scroll_img" style="visibility: visible;">
                    <ul class="scroll_wrap" style="width: 2428px;">
                        <li data-index="0" style="width: 607px; left: 0px; transition: 300ms; -webkit-transition: 300ms; -webkit-transform: translate(0px, 0px) translateZ(0px);">                                        
                    @if (@Model.PInfoLifeimg != "|")
                    {
                        foreach (var life_pic in life_pics)
                        {
                            try
                            {
                                var life_infos = life_pic.ToString().Split('|');
                                var big = life_infos[1];
                                var small = life_infos[2];
                                var des = life_infos[3] ?? "暂无描述...";
                       <a class="pic" href="@big" title="">
                            <img src="@small" alt="" width="auto" height="210" /></a>                           
                            }
                            catch
                            {
                            }
                        }
                        <script src="~/Themes/default/yuesao/zoom.min.js"></script>     
                    }
                    else
                    {
                        <h6>
                            对不起，该育婴师暂无生活照</h6>
                    }
</li>
                   </ul>
                </section>
            </section>
            <!--scroll-->
        </section>
        </section>
    <!--基本资料 end-->
    <!--职业技能 start-->
    <section class="detailsTitle workTit clearfix" id="workSkills"><em></em><span>职业技能</span></section>
    <section class="back">
    <section class="skillLevel clearfix"><span class="fl">特别技能: @Model.PInfoClass @*@Html.HiddenFor(model => model.PInfoClass)*@</span></section> 
                @Html.HiddenFor(model => model.PInfoDes)
                <p class="gray9" id="yuesaodes_content">               
                </p>         
</section>
    <!--职业技能 end-->
    <!--月嫂性格 start-->
    <section class="detailsTitle charTit clearfix" id="characters"><em></em><span>月嫂性格</span></section>
    <section class="back askList">
    <ul>      
        <li>
          <h5>
                生肖：<span id="sx">@Model.PInfoShuxiang.Replace("属", "")</span></h5>
            <div id="sx_content">
                <p>
                    为人正直，守规矩。不该做的事不做，不该问的话不问，选择这样的阿姨，不会增加客户的烦恼。</p>
                <p>
                    对上司、长辈敬重。面对比自己见识广、文化高的客户，这份敬重感也同样适用。</p>
                <p>
                    工作认真，有责任感，对雇主交代的事，总是超乎意料的完成。</p>
                <p>
                    防卫意识强，做事考虑全面，轻易不出差漏。相信客户都会需要一位做事效率高的好阿姨吧。</p>
            </div>
        </li>
    </ul>
     <div class="xingzuo comdiv">
            <h5>
                星座：<span id="xz">@Model.PInfoXingzuo.Replace("座", "")</span></h5>
            <div id="xz_content">
                <p>
                    性格外向、对人友善体贴。阿姨们会把小生命的诞生当成是很神圣的事。</p>
                <p>
                    心胸开阔、光明磊落、不拘小节、讲义气。大家都愿意和宽容大方的人交朋友，这些正能量会给狮子座的阿姨带来好运气，也会带给客户带来益处。</p>
                <p>
                    做事坚持原则和理念，阿姨不混账，和她讲道理即可。</p>
            </div>
        </div>
</section>
    <!--月嫂性格 end-->
    <!--大家点评 start-->
    <section class="detailsTitle reviTit clearfix" id="review"><em></em><span>大家来点评</span></section>
    <section class="back reviList pd30">  
    @foreach (var evaltion in evals)
    {
        var evaImg = @Html.GetValue(evaltion, "PEvaImg").ToString();
        var ping_pics = (object[])Utils.StringToObjectArray(evaImg, ',');
        var evaImgbox = @Html.GetValue(evaltion, "PEvaImgbox");
            <section class="agentEval clearfix">
                <p class="user clearfix"> <a href="javascript:void(0);" onClick="showTopDialog('prev_img', '<div style=\'text-align:center;\'><img style=\'height:390px;\' src =\'@evaImgbox\' /></div>','查看大图',500,400,null, null);"><img class="userImg" src="@evaImgbox"></a><span>@Html.GetValue(evaltion, "PEvaPerson") </span><span style="margin-left: 20px;">评价级别：</span><span class="xing">@Html.OptionsPalse(int.Parse(@Html.GetValue(evaltion, "PEvaLevel").ToString()), "1|★,2|★★,3|★★★")</span></p>
                <p>@Html.GetValue(evaltion, "PEvaContent")</p>  
                    <div class="tupian">
                    <div class="list_img">
                        <ul>                    
                            @foreach (var ping_pic in ping_pics)
                            {
                                try
                                {
                                    var ping_infos = ping_pic.ToString().Split('|');
                                    var big = ping_infos[1];
                                    var small = ping_infos[2];
                                    var des = ping_infos[3] ?? "暂无描述...";
                                <li><a class="pic" href="javascript:void(0);" title="" onClick="showTopDialog('prev_img', '<div style=\'text-align:center;\'><img style=\'height:390px;\' src =\'@small\' /></div>','查看大图',500,400,null, null);">
                                    <img class="img2" style="float:left; margin-left:10px;"  width="60" height="80"  src="@small" alt="" title="@des"/></a> </li>
                                }
                                catch
                                {
                                }
                            }
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                </div>
                <div style="clear:both;"> </div>
                <p class="time">@DateTime.Parse(@Html.GetValue(evaltion, "PEvaTime").ToString()).ToString("yyyy-MM-dd")</p>
            </section>                                               
    }
    </section>
    </section>
    <!--大家点评 end-->
    @* <section class="footerFix" style="position: fixed;">
        <a class="page prev" href="#" title="上一个"><em>上一个</em></a>

    <section class="footerback clearfix">
        <a style="padding-left:30px;" class="tel_but" href="tel:4006149398" title="预约电话"><em></em><span class="fl clearfix"><span class="fl">预约电话:</span><span class="font36 fl">400-6149-398</span></span></a>
    </section>
        <a class="page next" href="#" title="下一个"><em>下一个</em></a>

</section>*@
    <section class="footer100"></section>
    <script type="text/javascript" src="/Themes/default/lib/function.js"></script>
    <script type="text/javascript" src="/Content/js/iZepto.js"></script>
    <script type="text/javascript" src="/Content/js/iMain.js"></script>
    <script type="text/javascript" src="/Content/js/iSwipe.js"></script>
    <script src="/Themes/default/base/js/shengxiao.js"></script>
    <script src="/Themes/default/base/js/xingzuo.js"></script>
    <script src="/Themes/default/base/js/yuesaoDes.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            //初始化生肖属相及月嫂技能描述
            init_sx_sx();
        });
        //初始化生肖属相
        function init_sx_sx() {
            var sx = $("#sx").html();
            var xz = $("#xz").html();
            var yuesaodes = $("#PInfoDes").val();
            var sx_content = get_desc_by_sx(sx);
            var xz_content = get_desc_by_xz(xz);
            var yuesaodes_content = get_desc_by_desname(yuesaodes);
            $("#sx_content").html(sx_content);
            $("#xz_content").html(xz_content);
            $("#yuesaodes_content").html(yuesaodes_content);
        }
    </script>
    <script type="text/javascript">
        var slider = Swipe(document.getElementById('scroll_img'), {
            auto: 3000,
            continuous: true
        });
    </script>
    <a href="#" title="回到顶部" class="ysGoTop" style="opacity: 0; display: none;">回到顶部</a>
</body>
</html>
